(function(app){
	app
		.controller("end_overCtrl",["$scope","myFactory",'$http','$state','$stateParams','$ionicHistory',function($scope,myFactory,$http,$state,$stateParams,$ionicHistory){
			//参数
			$scope.chdrnum01=$stateParams.chdrnum01;
			$scope.message=$stateParams.message;

			var chdrnum01=$stateParams.chdrnum01;
			//var end=$stateParams.end;

			$scope.data = {
			};

			//重新受理
			$scope.renew = function(){
				myFactory.renew();
			}
			//退出移动保全
			$scope.exit = function(){
				myFactory.exit();
			}
			$scope.goBack = function () {
				myFactory.goBack();
			}

			$scope.returnIndex = function () {
				$ionicHistory.clearCache().then(function(){
					$state.go('search',{
						index:'yes'
					});
				})
			}

		}])
})(app)